@px: 1px;
textarea {
  outline: none;
}
.dm_con {
  background-color: #f8f8f8;
  position: absolute;
  bottom: 0;
  right: 0;
  top: 50px;
  z-index: 99;
  width: 500px;
  &.hide {
    transform: translateX(500px);
  }
  .dm_list_outer{
    position: absolute;
    top: 0;
    bottom: 162px;
    left: 0;
    right: 0;
    .dm_list {
      padding: 0 20px;
      position: absolute;
      max-height: 100%;
      overflow-x: hidden;
      overflow-y: auto;
      bottom: 0;
      left: 0;
      right: 0;
      .dm_item {
        margin: 8px 0;
        min-height: 26px;
        position: relative;
        .dm_head {
          height: 26px;
          width: 26px;
          position: absolute;
          top: 0;
          left: 0;
          border-radius: 50%;
          overflow: hidden;
        }
        .dm_detail {
          line-height: 26px;
          font-size: 16px;
          padding-left: 32px;
          word-break: break-all;
          .dm_name {
            color: #74af69;
            margin-right: 6px;
          }
          .dm_teacher {
            background: linear-gradient(to right, #0edd1d, #4af5d4);
            color: #fff;
            padding: 1px 8px;
            border-radius: 15px;
            margin-right: 6px;
            font-size: 12px;
            vertical-align: bottom;
          }
          .dm_question_flag {
            background-color: @baseGreen;
            color: #fff;
            padding: 1px 8px;
            border-radius: 15px;
            margin-right: 6px;
            font-size: 12px;
            vertical-align: bottom;
          }
          .dm_text {
            color: #515151;
            word-break: break-all;
          }
        }
        .dm_system_content {
          line-height: 26px;
          position: relative;
          .dm_system_icon {
            width: 80 * 20 / 32 * @px;
            height: 20px;
            display: block;
            position: absolute;
            top: 3px;
            left: 0;
          }
          .dm_system_text {
            text-indent: ((80 * 20 / 32) + 10) * @px;
            font-size: 16px;
            color: #ff9d01;
          }
        }

        &.red {
          .dm_detail {
            .dm_name {
              color: @baseRed;
            }
            .dm_teacher {
              background: @baseRed;
            }
            .dm_question_flag {
              background: @baseRed;
            }
          }
        }
        &.question {
          .dm_detail {
            padding-right: 55px;
            position: relative;
          }
          .zan_con {
            position: absolute;
            height: 26px;
            line-height: 26px;
            top: 0;
            right: 0;
            cursor: pointer;
            padding-left: 20px;
            .zan_icon {
              width: 15px;
              height: 15px;
              position: absolute;
              top: 50%;
              left: 0;
              transform: translateY(-50%);
            }
            .zan_text {
              color: #333;
              font-size: 14px;
              font-weight: 600;
            }
            &.active {
              .zan_text {
                color: @baseGreen;
              }
            }
          }
        }
      }
      &.hide {
        display: none;
      }
    }
  }

}
.dm_footer {
  position: absolute;
  width: 100%;
  padding: 0 20px;
  bottom: 0;
  .question_icon {
    width: 26px;
    height: auto;
    position: absolute;
    top: 0;
    left: 20px;
    cursor: pointer;
  }
  .input_con {
    height: 90px;
    .input {
      width: 100%;
      border-radius: 4px;
      border: 1px solid #e9eaec;
      height: 90px;
      color: #7b818e;
      font-size: 14px;
      line-height: 1.5;
      background-color: #fff;
      resize:none;
      padding: 5px 10px;
      box-shadow: none;
      &::-webkit-input-placeholder{
        color: #7b818e;
      }
      &::-moz-placeholder{  //不知道为何火狐的placeholder的颜色是粉红色，怎么改都不行，希望有大牛路过帮忙指点
        color: #7b818e;
      }
      &:-moz-placeholder{  //不知道为何火狐的placeholder的颜色是粉红色，怎么改都不行，希望有大牛路过帮忙指点
        color: #7b818e;
      }
      &:-ms-input-placeholder{  //由于我的IE刚好是IE9，支持不了placeholder，所以也测试不了(⊙﹏⊙)，有IE10以上的娃可以帮我试试
        color: #7b818e;
      }
    }
  }
  .dm_footer_bottom {
    height: 32px;
    margin: 20px 0;
    .dm_switch {
      margin-top: 6px;
      width: 48px;
      height: 20px;
      float: left;
      border-radius: 15px;
      cursor: pointer;
      position: relative;
      margin-left: 1px;
      box-shadow:inset 0 1px 3px 0 rgba(0,0,0,0.50);
      .switch {
        width: 26px;
        height: 26px;
        font-size: 14px;
        line-height: 26px;
        text-align: center;
        border-radius: 50%;
        background-color: #fff;
        position: absolute;
        box-shadow:0 0 1px 0 rgba(138,138,138,0.50);
        top: -3px;
      }
      &.switch_on {
        background-color: @baseGreen;
        .switch {
          color: @baseGreen;
          left: -1px;
        }
      }
      &.switch_off {
        background-color: #555;
        .switch {
          color: #ccc;
          right: -1px;
        }
      }
    }
    .dm_question_action {
      float: left;
      .out_dm_other_list_icon_out {
        float: left;
        margin-left: 20px;
        height: 30px;
        width: 30px;
        border-radius: 50%;
        background-color: #44b549;
        line-height: 30px;
        text-align: center;
        position: relative;
        .out_dm_other_list_icon {
          width: 15px;
          height: auto;
          cursor: pointer;
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translate(-50%, -50%);
        }
      }

      .do_like_con {
        float: left;
        margin-left: 20px;
      }
      .out_dm_other_zan_icon {
        width: 30px;
        height: 30px;
        cursor: pointer;
        float: left;
      }
    }
    .toggle_question_icon {
      height: 32px;
      line-height: 32px;
      cursor: pointer;
      position: absolute;
      right: 105px;
      font-size: 12px;
      padding-left: 18px;
      color: #bfbfbf;
      .question_icon {
        width: 14px;
        height: 14px;
        position: absolute;
        top: 9px;
        left: 0;
      }
      &.active {
        color: @baseGreen;
      }
    }
    .send_btn {
      width: 79px;
      height: 32px;
      float: right;
      border-radius: 4px;
      background-color: @baseGreen;
      color: #fff;
      line-height: 32px;
      text-align: center;
      font-size: 14px;
      cursor: pointer;
    }
  }
  &.hide {
    background-color: transparent;
    .input_con{
      display: none;
    }
    .send_btn {
      display: none;
    }
  }
  &.red {
    .send_btn {
      background-color: @baseRed;
    }
    .dm_switch {
      &.switch_on{
        background-color: @baseRed;
        .switch {
          color: @baseRed;
        }
      }
    }
  }
}
.out_dm_switch {
  margin-top: 3px;
  width: 48px;
  height: 20px;
  position: absolute;
  right: 120px;
  bottom: 24px;
  border-radius: 15px;
  cursor: pointer;
  margin-left: 1px;
  z-index: 100;
  &.red {
    &.switch_on{
      background-color: @baseRed;
      .switch {
        color: @baseRed;
      }
    }
  }
  .switch {
    width: 26px;
    height: 26px;
    font-size: 14px;
    line-height: 26px;
    text-align: center;
    border-radius: 50%;
    background-color: #fff;
    position: absolute;
    box-shadow:0 0 1px 0 rgba(138,138,138,0.50);
    top: -3px;
  }
  &.switch_on {
    background-color: @baseGreen;
    .switch {
      color: @baseGreen;
      left: -1px;
    }
  }
  &.switch_off {
    background-color: #555;
    .switch {
      color: #ccc;
      right: -1px;
    }
  }
}
.like_toast_text {
  height: 30px;
  line-height: 30px;
  padding: 0 15px;
  background-color: rgba(0, 0, 0, .8);
  color: #fff;
  font-size: 14px;
  border-radius: 3px;
  position: absolute;
  right: 30px;
  bottom: 60px;
  display: inline-block;
  z-index: 100;
}
.out_dm_other {
  position: absolute;
  bottom: 20px;
  height: 30px;
  right: 20px;
  text-align: center;
  z-index: 100;
  .out_dm_other_list_icon_out {
    float: left;
    margin-right: 20px;
    height: 30px;
    width: 30px;
    border-radius: 50%;
    background-color: #44b549;
    line-height: 30px;
    text-align: center;
    position: relative;
    .out_dm_other_list_icon {
      width: 15px;
      height: auto;
      cursor: pointer;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }
  }
  .do_like_con {
    float: left;
  }
  .out_dm_other_zan_icon {
    width: 30px;
    height: 30px;
    cursor: pointer;
  }
}

.do_like_con {
  position: relative;
  img {
    position: relative;
    z-index: 1;
  }
}

.star_animate_view {
  position: absolute;
  width: 1px;
  height: 1px;
  bottom: 10px;
  left: 5px;
  z-index: 0;
}
.heart-outer {
  display: block;
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: scale(.4);
  opacity: 0;
  &.animate1 {
    animation: grow 1.5s linear forwards;
  }
  &.animate2 {
    animation: grow 1.2s linear forwards;
  }
  &.animate3 {
    animation: grow .9s linear forwards;
  }
}
.heart-outer .heart-inner {
  display: inline-block;
  position: relative;
  width: 30px;
  height: 30px;
  margin: 0 10px;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
  &.color1 {
    //background-color: rgba(253,145,20, 1);
    background-color: #FD9114;
    opacity: .7;
  }
  &.color2 {
    //background-color: rgba(18,167,60, 1);
    background-color: #12A73C;
    opacity: .7;
  }
  &.color3 {
    //background-color: rgba(215,114,138, 1);
    background-color: #D7728A;
    opacity: .7;
  }
}
.heart-outer .heart-inner:before, .heart-outer .heart-inner:after {
  content: "";
  position: absolute;
  background-color: inherit;
  border-radius: 50%;
  width: 30px;
  height: 30px;
}
.heart-outer .heart-inner:before {
  top: -15px;
  left: 0;
}
.heart-outer .heart-inner:after {
  left: 15px;
  top: 0;
}

@keyframes grow {
  0% {
    opacity: 1;
    transform: scale(.5) translate(20px, 0px);
  }
  25% {
    transform: scale(.6) translate(0, -25px);
  }
  50% {
    transform: scale(.7) translate(-20px,-50px);
  }
  75% {
    transform: scale(.8) translate(0, -75px);
  }
  100% {
    opacity: 0;
    transform: scale(.9) translate(20px, -100px);
  }

}
